﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SimpleGUI.DetectionMethods.RandomDart
{
	public partial class Setup : Form
	{
		public Setup(int delay)
		{
			InitializeComponent();
			trackbarTimout.Value = Math.Max(100, delay)/100;
			float seconds = trackbarTimout.Value / 10.0f;
			lblTimout.Text = seconds.ToString();
		}
		
		public int delay
		{
			get { return trackbarTimout.Value*100; }
		}

		private void trackbarTimout_Scroll(object sender, EventArgs e)
		{
			float seconds = trackbarTimout.Value / 10.0f;
			lblTimout.Text = seconds.ToString();
		}
	}
}
